//
//  JSDemoToolsVC.m
//  JSBaseProject
//
//  Created by Apple on 2017/11/7.
//  Copyright © 2017年 Apple. All rights reserved.
//

#import "JSDemoToolsVC.h"

@interface JSDemoToolsVC ()

@end

@implementation JSDemoToolsVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = JS_colorWithHex(kBodyBGColor);
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    [self.view addSubview:btn];
    [btn setTitle:@"out" forState:UIControlStateNormal];
    [btn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self.view);
        make.width.mas_equalTo(100);
        make.height.mas_equalTo(40);
    }];
    [btn addTarget:self action:@selector(out) forControlEvents:UIControlEventTouchUpInside];
}

- (void)out {
    [userManager logout:^(BOOL success, NSString *des) {
        
    }];
}

- (void)setNavigationItemsIsInEditMode:(BOOL)isInEditMode animated:(BOOL)animated{
    [super setNavigationItemsIsInEditMode:isInEditMode animated:animated];
    
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
